<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php echo $this->Html->charset(); ?>
<title><?php echo $title_for_layout; ?></title>

<?php
	echo $this->Html->meta('icon');

	/*** CSS reset ***/
	echo $this->Html->css('reset');
	/*** Latest compiled and minified CSS ***/
	echo $this->Html->css('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css');
	/*** Optional theme ***/
	echo $this->Html->css('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css');
	/*** Google Font ***/
	echo $this->Html->css('http://fonts.googleapis.com/css?family=Tangerine');
	/*** Font Awesome ***/
	echo $this->Html->css('font-awesome-4.1.0/css/font-awesome.min.css');
	/*** My CSS ***/
	echo $this->Html->css('style');
	/*** My Common CSS ***/
	echo $this->Html->css('common');
	
	echo $scripts_for_layout;

	/*** "jquery-1.11.1.min.js" HAVE TO above all of the js files or links ***/
	 echo $this->Javascript->link('jquery-1.11.1.min.js', true);
	/*** Jquery Validation ***/
	 echo $this->Javascript->link('jquery.validate.js', true);
	 /*** Jquery Validation Addition Method ***/
	 echo $this->Javascript->link('additional-methods.js', true);
	/*** Bootsrap JS ***/
	 echo $this->Javascript->link('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js', true);
	/*** My JS ***/
	 echo $this->Javascript->link('javascript.js', true);

?>
</head>

<body class="div_bg boxed">
	<!-- The border around all page -->
	<div class="wrap">
    
    <!-- Header -->
    <div class="header_bar">	
    	<div class="header_in_left">
			<?php echo $this->Html->link($this->Html->image('insource_logo.png'),array('controller' => 'm_avoidance_words', 'action' => 'word_check'),array('escape' => FALSE));?>
    		<div class="clearfix"></div>
        	<span class="logo_title">Avoidance Words System</span>
		</div>
		<div class="header_in_right">
			<?php echo $this->Html->link($Usersuser_name,array('controller' => 'm_users', 'action' => 'personal_detail',$UsersID),array('escape' => FALSE));?>
			<span>|</span>
        	<?php echo $this->Html->link('Logout <i class="fa fa-sign-out fa-1x"></i>',array('controller' => 'm_users', 'action' => 'logout'),array('escape' => FALSE));?>
		</div>
    </div>
    <!-- End Header -->
    
    	<div class="clearfix"></div>
    	<hr style="margin-top: 10px!important;margin-bottom: 15px!important;border-top: 1px solid rgb(223, 223, 223);" />
    	
	<!-- Page Ground -->
   	<div class="warp_content">
   		
   		<!-- Menu -->
    	<div class="top_menu">
			<ul class="nav nav-tabs nav-justified" role="tablist">
				<li role="presentation" class="dropdown">
				<?php echo $this->Html->link('<i class="fa fa-check-square-o fa-3x"></i>Word Check',array('controller' => 'm_avoidance_words', 'action' => 'word_check'),array('escape' => FALSE));?>
				<li role="presentation" class="dropdown">
				<a href="#"class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-edit fa-3x"></i>Words Maintainace</a>
					<ul class="dropdown-menu sub-menu" role="menu">
						<li><?php echo $this->Html->link('Add Words',array('controller' => 'm_avoidance_words', 'action' => 'add'),array('escape' => FALSE));?></li>
						<li class="divider"></li>
						<li><?php echo $this->Html->link('Search Words',array('controller' => 'm_avoidance_words', 'action' => 'search'),array('escape' => FALSE));?></li>
						<li class="divider"></li>
						<li><?php echo $this->Html->link('Input/Output',array('controller' => 'm_avoidance_words', 'action' => 'csv_import'),array('escape' => FALSE));?></li>
					</ul>
				</li>
				<li role="presentation"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-users fa-3x"></i>Users Maintainace</a>
					<ul class="dropdown-menu sub-menu" role="menu">
						<li><?php echo $this->Html->link('Add Users',array('controller' => 'm_users', 'action' => 'add'),array('escape' => FALSE));?></li>
						<li class="divider"></li>
						<li><?php echo $this->Html->link('Search Users',array('controller' => 'm_users', 'action' => 'search'),array('escape' => FALSE));?></li>
						<li class="divider"></li>
						<li><?php echo $this->Html->link('Input/Output',array('controller' => 'm_users', 'action' => 'csv_import'),array('escape' => FALSE));?></li>
					</ul>
				</li>
			</ul>
		<!--End div top_menu-->
		</div>
        <!-- End Menu -->
        
            <div class="clearfix"></div>

		<!-- Content of page -->
		<div class="content">

			<?php
			/**** Import content page ****/
			echo $content_for_layout;
			?>

		</div>
		<!-- End Content of page -->
			
        </div>
    	   
    	<!-- Footer -->
    	<div class="modal-footer ac mt30">
    		Copyright © 2014 INSOURCE Co.Ltd. All rights reserved
    	</div>
    	<!-- End Footer --> 
    	
   	</div>
   	<!--End div warp-->

	<?php 
	/**** Generate SQL query just for develop, delete or commend when develop done ****/
	echo $this->element('sql_dump'); 
	?>

</body>
</html>
